/// iot_data : "2"
/// update_time : "2023-03-09T16:11:43"
/// create_time : "2023-03-09T16:11:43"
/// d_flag : 1
/// id : 1633742344303960065

class Datalog {
  late String iotData;
  late String updateTime;
  late String createTime;
  late int dFlag;
  late int id;

  static Datalog? fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    Datalog datalogBean = Datalog();
    datalogBean.iotData = map['iot_data'];
    datalogBean.updateTime = map['update_time'];
    datalogBean.createTime = map['create_time'];
    datalogBean.dFlag = map['d_flag'];
    datalogBean.id = map['id'];
    return datalogBean;
  }

  Map toJson() => {
    "iot_data": iotData,
    "update_time": updateTime,
    "create_time": createTime,
    "d_flag": dFlag,
    "id": id,
  };
}